package meihua.stopcarapp.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;
import meihua.stopcarapp.utils.ToastUtil;

/**
 * Name: LGZ
 * Time: 2017/5/12.
 * Dec:
 * 交押金
 */

public class DepositPayActivity extends BaseActivity {

    @Bind(R.id.toolbar_center)
    TextView toolbarCenter;
    @Bind(R.id.activity_deposit_tv)
    TextView activityDepositTv;
    @Bind(R.id.activity_deposit_rb_zfb)
    RadioButton activityDepositRbZfb;
    @Bind(R.id.activity_deposit_rb_wx)
    RadioButton activityDepositRbWx;
    @Bind(R.id.activity_deposit_rg)
    RadioGroup activityDepositRg;

    /**
     * 入口
     *
     * @param activity
     */
    public static void startAction(Activity activity) {
        Intent intent = new Intent(activity, DepositPayActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_deposit_pay;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        toolbarCenter.setText("押金缴纳");
    }

    @OnClick({R.id.toolbar_left, R.id.activity_deposit_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.toolbar_left:
                finish();
                break;
            case R.id.activity_deposit_btn:
                ToastUtil.showShort(DepositPayActivity.this,"支付宝接口");

                //返回上一页（首页或者钱包页）
                DepositPayActivity.this.finish();
                break;
        }
    }
}
